package com.gqb.threadWait;


public class MainTask {
	public static void main(String[] args) {
		Object swtich=new Object();
		Task task=new Task(swtich);
		Thread thread=new Thread(task);
		thread.start();
		for (int i = 0; i < 10000; i++) {
			
		}
		try {
			swtich.wait();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
